/*
 * Copyright (c) 2009-2013 EvTech Project
 * All rights reserved.
 * 
 * This file is part of Game packet.
 *
 * Game packet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or 
 * (at your option) any later version.
 *
 * Game packet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Game packet.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package fi.honkalampisaatio.game.xml;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(namespace = "fi.honkalampisaatio.usersetting")
public class UserSetting {

	//private ArrayList<GameSettings> gamesList = new ArrayList<GameSettings>();	
	private ArrayList<String> gameFileList = new ArrayList<String>();	

	// image for menu
	private String menuImage = "";

	// name of the user
	private String name = "";
	
	private String userFolder = "";

	private int userId;
	private boolean active;
	

	public void setGameFileList(ArrayList<String> gameFileList) {
		this.gameFileList = gameFileList;
	}
	// XmLElementWrapper generates a wrapper element around XML representation
	@XmlElementWrapper(name = "gameFileList")
	// XmlElement sets the name of the entities
	@XmlElement(name = "file")
	public ArrayList<String> getGameFileList() {
		return gameFileList;
	}
	/*
	public void setGamesList(ArrayList<GameSettings> gamesList) {
		this.gamesList = gamesList;
	}
	// XmLElementWrapper generates a wrapper element around XML representation
	@XmlElementWrapper(name = "gamesList")
	// XmlElement sets the name of the entities
	@XmlElement(name = "game")
	public ArrayList<GameSettings> getGameList() {
		return gamesList;
	}
	*/
	
	public String getMenuImage() {
		return menuImage;
	}

	public void setMenuImage(String menuImage) {
		this.menuImage = menuImage;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserFolder() {
		return userFolder;
	}

	public void setUserFolder(String userFolder) {
		this.userFolder = userFolder;
	}


	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
	
	public String toString()
	{
		return name;
	}
	
}
